<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ICM" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.ICM" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:53946/IcmMasterService.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" />
  <xs:complexType name="MasPurchaseRegular">
    <xs:sequence>
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegularId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPurchaseRegular" nillable="true" type="tns:MasPurchaseRegular" />
  <xs:complexType name="ArrayOfMasPurchaseRegular">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasPurchaseRegular" nillable="true" type="tns:MasPurchaseRegular" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasPurchaseRegular" nillable="true" type="tns:ArrayOfMasPurchaseRegular" />
  <xs:complexType name="MasPurchaseRegularMapping">
    <xs:sequence>
      <xs:element minOccurs="0" name="BgSourceId" nillable="true" type="xs:int" />
      <xs:element xmlns:q1="http://schemas.datacontract.org/2004/07/KPIS.GERP.Models.BGM" minOccurs="0" name="MasBudgetSource" nillable="true" type="q1:MasBudgetSource" />
      <xs:element minOccurs="0" name="MasPurchaseRegular" nillable="true" type="tns:MasPurchaseRegular" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RegularId" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RegularMapId" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPurchaseRegularMapping" nillable="true" type="tns:MasPurchaseRegularMapping" />
  <xs:complexType name="ArrayOfMasPurchaseRegularMapping">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasPurchaseRegularMapping" nillable="true" type="tns:MasPurchaseRegularMapping" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasPurchaseRegularMapping" nillable="true" type="tns:ArrayOfMasPurchaseRegularMapping" />
  <xs:complexType name="MasUnit">
    <xs:sequence>
      <xs:element minOccurs="0" name="Code" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Sign" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UnitId" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasUnit" nillable="true" type="tns:MasUnit" />
  <xs:complexType name="ArrayOfMasUnit">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasUnit" nillable="true" type="tns:MasUnit" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasUnit" nillable="true" type="tns:ArrayOfMasUnit" />
  <xs:complexType name="MasPurchaseType">
    <xs:sequence>
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="PcTypeDescr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PcTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="PcTypeName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RestoredBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="RestoredWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPurchaseType" nillable="true" type="tns:MasPurchaseType" />
  <xs:complexType name="ArrayOfMasPurchaseType">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasPurchaseType" nillable="true" type="tns:MasPurchaseType" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasPurchaseType" nillable="true" type="tns:ArrayOfMasPurchaseType" />
  <xs:complexType name="MasPurchaseMethod">
    <xs:sequence>
      <xs:element minOccurs="0" name="AmountMax" type="xs:decimal" />
      <xs:element minOccurs="0" name="AmountMin" type="xs:decimal" />
      <xs:element minOccurs="0" name="CreatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="CreatedWhen" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="Descr" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="IsBid" nillable="true" type="xs:boolean" />
      <xs:element minOccurs="0" name="MasPurchaseType" nillable="true" type="tns:MasPurchaseType" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PcMethodId" type="xs:int" />
      <xs:element minOccurs="0" name="PcTypeId" type="xs:int" />
      <xs:element minOccurs="0" name="Reason" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="RecordStatus" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="UpdatedBy" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="UpdatedWhen" nillable="true" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MasPurchaseMethod" nillable="true" type="tns:MasPurchaseMethod" />
  <xs:complexType name="ArrayOfMasPurchaseMethod">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MasPurchaseMethod" nillable="true" type="tns:MasPurchaseMethod" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMasPurchaseMethod" nillable="true" type="tns:ArrayOfMasPurchaseMethod" />
</xs:schema>